import App from './App'
import i18n from './lang/'
import store from './store';
import uView from './uni_modules/vk-uview-ui';
import httpInterceptor from './utils/http.interceptor.js';
import { $goPage } from './utils/util.js'
// import vuexStore from './store/$u.mixin.js';
// import Mixin from './store/mixins';


// #ifndef VUE3
import Vue from 'vue'
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App
})

Vue.use(httpInterceptor, app);
app.$mount()

// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(i18n)
	app.use(store)
	app.use(uView)
	app.config.globalProperties.$http = httpInterceptor
	app.config.globalProperties.$goPage = $goPage
	app.config.globalProperties.$store = store
	// app.use(vuexStore)
	//app.use(Mixin)
	return {
		app
	}
}
// #endif
